package com.card.client.entry;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.gwt.user.client.rpc.IsSerializable;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class FinanceType implements IsSerializable {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent
	private String financeType;
	
	@Persistent
	private int typeIndex;
	
	@Persistent
	private int typeInOut;
	
	@Persistent
	private String financeTypeNotes;
	
	public static String[] title = {"编号", "类型名称", "种类", "收入支出", "备注"};
	
	public FinanceType(){
		this.financeType = "";
		this.typeIndex = 0;
		this.financeTypeNotes = "";
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getFinanceType() {
		return financeType;
	}

	public void setFinanceType(String financeType) {
		this.financeType = financeType;
	}

	public int getTypeIndex() {
		return typeIndex;
	}

	public void setTypeIndex(int typeIndex) {
		this.typeIndex = typeIndex;
	}

	public String getFinanceTypeNotes() {
		return financeTypeNotes;
	}

	public void setFinanceTypeNotes(String financeTypeNotes) {
		this.financeTypeNotes = financeTypeNotes;
	}

	public int getTypeInOut() {
		return typeInOut;
	}

	public void setTypeInOut(int typeInOut) {
		this.typeInOut = typeInOut;
	}
	
}
